package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CLawadmininfoDao;
import gov.ccswj.modules.ccbusiness.entity.CLawadmininfoEntity;
import gov.ccswj.modules.ccbusiness.service.CLawadmininfoService;



@Service("cLawadmininfoService")
public class CLawadmininfoServiceImpl implements CLawadmininfoService {
	@Autowired
	private CLawadmininfoDao cLawadmininfoDao;
	
	@Override
	public CLawadmininfoEntity queryObject(Integer id){
		return cLawadmininfoDao.queryObject(id);
	}
	
	@Override
	public List<CLawadmininfoEntity> queryList(Map<String, Object> map){
		return cLawadmininfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cLawadmininfoDao.queryTotal(map);
	}
	
	@Override
	public void save(CLawadmininfoEntity cLawadmininfo){
		cLawadmininfoDao.save(cLawadmininfo);
	}
	
	@Override
	public void update(CLawadmininfoEntity cLawadmininfo){
		cLawadmininfoDao.update(cLawadmininfo);
	}
	
	@Override
	public void delete(Integer id){
		cLawadmininfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cLawadmininfoDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cLawadmininfoDao.delete(entname);
		
	}
}
